package com.qn.meta.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
/**
 * qingniu-cloud user source analysis
 *
 * @Author: TXG
 * @Date: 2024/6/11
 * @Version V0.0.2
 */
@Data
@Tag(name="用户注册")
public class UserRegisterVo implements Serializable {

    @Schema(description = "昵称")
    @NotNull(message = "昵称-不能为空")
    private String name;

    @Schema(description = "手机号")
    @NotNull(message = "手机号-不能为空")
    private String phone;

    @Schema(description = "邮箱")
    @NotNull(message = "邮箱-不能为空")
    @Email(message = "邮箱-格式错误")
    private String email;

    @Schema(description = "密码")
    @NotNull(message = "密码-不能为空")
    private String password;
}
